<!doctype html>
<meta charset="utf-8">
<style>
  .foo {
    color:blue;
    background-color:yellow;
  }
  .bar {
    color:orange;
  }
  .bar-over-foo {
    color:orange;
    background-color:yellow;
  }
</style>
<body><span class="foo">Som</span><span class="bar-over-foo">e t</span><span class="bar">ext</span>